package com.camel.weixin.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.camel.core.entity.BasePaginationEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 微信公众号菜单
 *
 * @author Administrator
 * @TableName wx_menu
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value = "wx_menu")
@Data
public class WxMenu extends BasePaginationEntity implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 公众号ID
     */
    @TableField(value = "wx_account_id")
    private Integer wxAccountId;

    /**
     * 菜单JSON
     */
    @TableField(value = "menu_json")
    private String menuJson;

    /**
     * 是否发布
     */
    @TableField(value = "is_publish")
    private Integer isPublish;
}